<template>
  <div class="certification_reviewsuccess" :style="reviewingHeight">
    <div class="reviewsuccess_box">
      <div class="reviewsuccess_img">
        <img src="https://img.wifenxiao.com/h5-wfx/images/user/review_success.png" alt="">
        <p>恭喜您，企业认证成功！</p>
      </div>
      <div class="reviewsuccess_btn" @click="toWithdraw('enterpriseTx-applyCash')">
        <span>去提现</span>
      </div>
    </div>
  </div>
</template>

<script>
import Vue from 'vue'
import { openPage } from '@/utils/utils'
export default Vue.extend({
  components: {},
  props: {},
  data() {
    return {
      // 获取高度
      reviewingHeight: {
        height: ''
      },
      withdraw_type: '', // 提现类型
      code: ''
    }
  },
  created() {
    this.withdraw_type = this.$route.query.withdrawType
    this.code = this.$route.query.code
  },
  mounted() {
    this.$nextTick(() => {
      this.reviewingHeight.height = window.innerHeight - 150 + 'px'
    })
  },
  methods: {
    // 去提现-企业申请提现
    toWithdraw(url) {
      const data = {
        withdrawType: '',
        code: this.code
      }
      if (this.withdraw_type == 'balanceTx') {
        data.withdrawType = 'balanceTx'
        this.$JumpPath(this, url, data)
      } else if (this.withdraw_type == 'myCommission') {
        data.withdrawType = 'myCommission'
        this.$JumpPath(this, url, data)
      } else if (this.withdraw_type == 'supplierWithdraw') {
        data.withdrawType = 'supplierWithdraw'
        this.$JumpPath(this, url, data)
      }
    }
  },
  computed: {
  },
  watch: {
  }
})
</script>

<style lang="scss">
.certification_reviewsuccess{
  position: relative;
  width: 100%;
  .reviewsuccess_box{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    .reviewsuccess_img{
      position: relative;
      width: 426px;
      img{
        max-width: 100%;
        width: 100%;
      }
      p{
        position: absolute;
        left: 50%;
        bottom: 65px;
        width: 100%;
        font-family: PingFang SC;
        font-size: 28px;
        color: #666;
        text-align: center;
        transform: translateX(-50%);
      }
    }
    .reviewsuccess_btn{
      font-size: 28px;
      color: #F20B22;
      width:226px;
      height:76px;
      line-height: 76px;
      text-align: center;
      margin: 4px auto 0;
      border: 2px solid #F20B22;
      border-radius: 38px;
    }
  }
}
</style>